<template>
  <div id="BasicLayouts">
    <a-space direction="vertical" :style="{ width: '100%' }" :size="[0, 48]">
      <a-layout>
        <a-layout-header class="header">
          <GLobalHeader />
        </a-layout-header>
        <a-layout-content class="content">
          <router-view></router-view>
        </a-layout-content>
        <a-layout-footer class="footer">
          <a
            href="https://www.antdv.com/docs/vue/getting-started-cn"
            target="blank"
            >这里是连接跳转</a
          >
        </a-layout-footer>
      </a-layout>
    </a-space>
  </div>
</template>
<script setup lang="ts">
import GLobalHeader from "@/components/GLobalHeader.vue";
/**
 * import { getCurrentUser } from "@/api/user";
 * getCurrentUser()
 *   .then((res) => {
 *   console.log(res);
 * });
 */
</script>

<style scoped>
#BasicLayouts .footer {
  background: #efefef;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
}

#BasicLayouts .content {
  padding: 20px;
  margin-booton: 20px;
  background: linear-gradient(to right, #efefef, #efefef);
}

#BasicLayouts .header {
  background: white;
}
</style>
